﻿package com.jxl.dnd.combat.actions
{
	import jxl.tiles.Tile;
	
	public class Move extends Action
	{
		protected var character:Object;
		protected var currentTile:Tile;
		protected var targetTile:Tile;
		
		public function Move(p_receiver, p_character, p_currentTile, p_targetTile):void
		{
			super(p_receiver);
			character = p_character;
			currentTile = p_currentTile;
			targetTile = p_targetTile;
		}
		
		public function execute():void
		{
			receiver.move(character, currentTile, targetTile);
		}
	}
}